package net.yambal.mobile.adv.manager
{
	import flash.utils.Dictionary;

	public class ADV_ResouceMng
	{
		private static var _instance:ADV_ResouceMng = null;
		
		private var _images:Dictionary;
		
		public function ADV_ResouceMng(){
			_images = new Dictionary();
		}
		
		public static function getInstance():ADV_ResouceMng {
			if(_instance == null){
				_instance = new ADV_ResouceMng();
			}
			return _instance;
		}
		
		public function addImageResouce(cls:Class, label:String):void{
			trace(this + ":addImageResouce("+label+")" );
			_images[label] = cls;
		}
		
		public function getImageResouceCls(label:String):Class{
			trace(this + ":getImageResouceCls("+label+")" );
			return Class(_images[label]);
		}
	}
}